from setuptools import find_packages, setup
#1、导入相关的头文件
import os
from glob import glob


package_name = 'pkg_car_ctrl'



setup(
    name=package_name,
    version='0.0.0',
    packages=find_packages(exclude=['test']),
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        #2、在data_files的列表中，加上launch路径以及路径下的launch.py文件
        (os.path.join('share',package_name,'launch'),glob(os.path.join('launch','*launch.py'))),
        (os.path.join('share',package_name,'launch'),glob(os.path.join('launch','*launch'))),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='ubuntu',
    maintainer_email='ubuntu@todo.todo',
    description='TODO: Package description',
    license='TODO: License declaration',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'car_ctrl = pkg_car_ctrl.car_ctrl:main',
            'odom_publisher = pkg_car_ctrl.odom_publisher:main',
            'car_keyboard_ctrl = pkg_car_ctrl.keyboard_ctrl:main'
        ],
    },
)
